import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import 'lib-flexible';
import * as serviceWorker from './serviceWorker';

//1.引入高阶组件
import { Provider } from "react-redux";
//2.引入store
import store from "./store";
ReactDOM.render(
//3.将App作为子节点 配置在Provider中
  <Provider store={store}>
    <App />
  </Provider>,
  document.getElementById('root')
);

// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls.
// Learn more about service workers: https://bit.ly/CRA-PWA
serviceWorker.unregister();
